7478fa4a382fdf61b9c1b3ffba1e09be68681488,camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java,ExchangeHelper,getMandatoryInBody,#Exchange#,113
Before Change
* an exception if it is not present
*/
public static Object getMandatoryInBody(Exchange exchange) throws InvalidPayloadException {
Object answer = exchange.getIn().getBody();
if (answer == null) {
throw new InvalidPayloadException(exchange, Object.class);
}
After Change
* an exception if it is not present
*/
public static Object getMandatoryInBody(Exchange exchange) throws InvalidPayloadException {
return exchange.getIn().getMandatoryBody();
}
/**